#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) JoinQuant Development Team
# Author: Huayong Kuang <kuanghuayong@joinquant.com>

from __future__ import print_function
import requests


def request_url():

    def foo():
        return {"a": 1, "b": 2}

    print(foo())

    resp = requests.get("http://www.baidu.com")
    resp.raise_for_status()
    return resp.content.decode("utf-8")


def print_baidu_home():
    print(request_url())
